<?php $theme = "front"; ?>
<div class="blog">
    <div class="container">
        <div class="blog-top">
            <div class="col-md-9 blog-left">
                <div class="blog-main">
                    <a href="#" class="bg"><?php echo $info['name'] ?></a>
                    <div class="blog-comments">
                        <p><?php echo $info['keywords'] ?></p>
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="blog-main-one">
                    <div class="blog-one">
                        <?php if ($info['photo_url']): ?>
                            <img src="<?php echo image($info['photo_url'], $theme); ?>" />
                        <?php endif; ?>
                        <p><p><?php echo $info['content'] ?></p></p>
                    </div>	
                </div>
            </div>

            <div class="col-md-3 blog-right">
                <div class = "categories">
                    <h3><a href = "<?php echo base_url($this->_site_path . '/company'); ?>">关于我们</a></h3>
                    <ul>
                        <?php
                        $fields = array('id', 'title');
                        $companyInfo = $this->company_model->get_appoint_values($fields, null, $search);
                        foreach ($companyInfo as $s) {
                            echo '<li><a href = "' . base_url($this->_site_path . '/company/single/' . $s['id']) . '">' . $s['title'] . '</a></li>';
                        }
                        ?>
                    </ul>
                </div>                
                <div class = "categories">
                    <h3>服务保障</h3>
                    <ul>
                        <?php
                        $fields = array('id', 'title');
                        $search['attributes']['parentid'] = 3;
                        $serviceInfo = $this->news_model->get_appoint_values($fields, null, $search);
                        foreach ($serviceInfo as $s) {
                            echo '<li><a href = "' . base_url($this->_site_path . '/news/single/' . $s['id']) . '">' . $s['title'] . '</a></li>';
                        }
                        ?>
                    </ul>
                </div>
            </div>

            <div class="clearfix"></div>
        </div>
        <div class="pagination">
            <nav>
                <ul class="pager">
                    <ul class="pager">

                        <?php if ($pre): ?>
                            <li><a href="<?php echo base_url($this->_site_path . '/team_member/single/' . $pre['id']) ?>">上一条</a></li>
                        <?php endif; ?>
                        <?php if ($next): ?>
                            <li><a href="<?php echo base_url($this->_site_path . '/team_member/single/' . $next['id']) ?>">下一条</a></li>
                        <?php endif; ?>
                    </ul>
                </ul>
            </nav>
        </div>
    </div>
</div>